package com.aaa.day118.demo4;

import com.aaa.day118.demo3.Ac220;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月08日16:44
 */
public class PowerAdapter extends Ac220 implements DC5 {
    private Ac220 ac220;
    public PowerAdapter(Ac220 ac220) {
        this.ac220 = ac220;
    }

    //输出5v直流电
    @Override
    public int output5v() {
        int i = this.ac220.output220v();
        return (i/44);
    }

}
